package org.minos.edit.view.components
{
	import org.aswing.BorderLayout;
	import org.aswing.JButton;
	import org.aswing.JPanel;
	import org.aswing.JToolBar;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class ToolBar extends JPanel
	{
		private var bar : JToolBar;
		private var addButton : JButton;
		private var removeButton : JButton;
		private var editButton : JButton;
		
		public function ToolBar()
		{
			super();
			setLayout( new BorderLayout() );
			
			bar = new JToolBar( JToolBar.HORIZONTAL , 5 );
			
			append( bar , BorderLayout.CENTER );
			
			addButton = new JButton( "添加" );
			editButton = new JButton( "编辑" );
			removeButton = new JButton( "删除" );
			
			addButton.setToolTipText( "新建一个新的场景" );
			removeButton.setToolTipText( "删除选中的场景" );
			editButton.setToolTipText( "编辑选中的场景" );
			
			bar.appendAll( addButton , editButton , removeButton );
		}
		
		public function getAddItemButton() : JButton
		{
			return addButton;
		}
		
		public function getRemoveItemButton() : JButton
		{
			return removeButton;
		}
		
		public function getEditItemButton() : JButton
		{
			return editButton;
		}
	
	}

}